mirror of
https://github.com/quantum5/correcthorsebatterystaple.git
synced 2025-04-25 02:31:57 -04:00
Correctly generate spaces
This commit is contained in:
parent
db76510a9c
commit
80e96f995e
|
@ -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) {
|
||||||
|
|
|
@ -85,7 +85,8 @@
|
||||||
<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<% } %>><%= _.escape(symbol) %></option>
|
<option<% if (symbol === require('./generator').defaultSymbol) { %> selected<% }
|
||||||
|
else if (symbol === ' ') { %> value=" "<% } %>><%= _.escape(symbol) %></option>
|
||||||
<% }) %>
|
<% }) %>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue