Skip to content

Commit

Permalink
Add build setup (ES5 & ES6, Un- andn Minifed)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhildenbiddle committed Apr 30, 2021
1 parent 1c56fa3 commit b39db28
Show file tree
Hide file tree
Showing 5 changed files with 9,611 additions and 6,121 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# Folders
dist
node_modules

# Files
*.log

# OS
._*
.cache
.DS_Store
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict'
module.exports = balanced
export default balanced

function balanced (a, b, str) {
if (a instanceof RegExp) a = maybeMatch(a, str)
if (b instanceof RegExp) b = maybeMatch(b, str)
Expand All @@ -23,6 +23,7 @@ function maybeMatch (reg, str) {
}

balanced.range = range

function range (a, b, str) {
let begs, beg, left, right, result
let ai = str.indexOf(a)
Expand Down
Loading

0 comments on commit b39db28

Please sign in to comment.