Move more popular symbols to the beginning

This commit is contained in:
Quantum 2020-06-15 22:35:29 -04:00
parent 3fcf6e5327
commit 94d9ca92e3
2 changed files with 2 additions and 3 deletions

View file

@ -1,6 +1,6 @@
const words = require('./words') const words = require('./words')
const digits = '0123456789' const digits = '0123456789'
const symbols = '`~!@#$%^&*()_+-=,./<>?;:|[]{} ' const symbols = '-_.,; /`~!@#$%^&*()+=<>?:|[]{}'
const defaultSymbol = '-' const defaultSymbol = '-'
function getWordList (name) { function getWordList (name) {

View file

@ -85,8 +85,7 @@
<label for="use-symbol">Use separator symbol:</label> <label for="use-symbol">Use separator symbol:</label>
<select id="separator-symbol" name="separator"> <select id="separator-symbol" name="separator">
<% [...require('./generator').symbols].forEach(symbol => { %> <% [...require('./generator').symbols].forEach(symbol => { %>
<option<% if (symbol === require('./generator').defaultSymbol) { %> selected<% } <option<% if (symbol === ' ') { %> value=" "<% } %>><%= _.escape(symbol) %></option>
else if (symbol === ' ') { %> value=" "<% } %>><%= _.escape(symbol) %></option>
<% }) %> <% }) %>
</select> </select>
</div> </div>