Skip to content

Commit

Permalink
Merge pull request #72 from fuhrmanator/sans-minify
Browse files Browse the repository at this point in the history
Sans minify
  • Loading branch information
fuhrmanator authored Sep 15, 2024
2 parents 040557c + 141b699 commit 4a07d1b
Show file tree
Hide file tree
Showing 12 changed files with 6,810 additions and 411 deletions.
2 changes: 0 additions & 2 deletions GIFT.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,9 @@ Weight "(weight)"
PercentValue "(percent)"
= percent:(!'%' .)* {
let error = 'a value between -100 and 100'
console.log(percent.length)
if (percent.length == 0) expected(error + ' (did you forget to put a value?)');
// the !'%' shows up as a 0th element in the percent array (of arrays), so we have to join the 1th elements
const pct = parseFloat(percent.map(innerArray => innerArray[1]).join(""));
console.log(pct)
if (pct >= -100 && pct <= 100) {
return pct;
} else {
Expand Down
2 changes: 0 additions & 2 deletions docs/editor/lib/GIFT.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,9 @@ Weight "(weight)"
PercentValue "(percent)"
= percent:(!'%' .)* {
let error = 'a value between -100 and 100'
console.log(percent.length)
if (percent.length == 0) expected(error + ' (did you forget to put a value?)');
// the !'%' shows up as a 0th element in the percent array (of arrays), so we have to join the 1th elements
const pct = parseFloat(percent.map(innerArray => innerArray[1]).join(""));
console.log(pct)
if (pct >= -100 && pct <= 100) {
return pct;
} else {
Expand Down
2 changes: 0 additions & 2 deletions lib/gift-parser-globals.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion lib/gift-parser-globals.min.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/gift-parser-globalsJS.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,9 @@
peg$c50 = peg$anyExpectation(),
peg$c51 = function(percent) {
let error = 'a value between -100 and 100'
console.log(percent.length)
if (percent.length == 0) expected(error + ' (did you forget to put a value?)');
// the !'%' shows up as a 0th element in the percent array (of arrays), so we have to join the 1th elements
const pct = parseFloat(percent.map(innerArray => innerArray[1]).join(""));
console.log(pct)
if (pct >= -100 && pct <= 100) {
return pct;
} else {
Expand Down
2 changes: 0 additions & 2 deletions lib/gift-parser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion lib/gift-parser.min.js

This file was deleted.

Loading

0 comments on commit 4a07d1b

Please sign in to comment.