cordova-android/node_modules/balanced-match/example.js

6 lines
154 B
JavaScript
Raw Normal View History

var balanced = require('./');
console.log(balanced('{', '}', 'pre{in{nested}}post'));
console.log(balanced('{', '}', 'pre{first}between{second}post'));