summary refs log tree commit diff stats
path: root/doc/intern.txt
Commit message (Expand)AuthorAgeFilesLines
* doc: Trim .txt files trailing whitespaceAdam Strzelecki2015-09-041-46/+46
* Fix typosFederico Ceratto2015-02-151-2/+2
* Fix typosFederico Ceratto2015-02-151-1/+1
* added note about creating stacktracesSimon Hafner2015-01-311-0/+3
* version 0.7.4Andreas Rumpf2009-01-071-116/+71
* version 0.7.0Andreas Rumpf2008-11-161-158/+31
* first releaseRumpf2008-06-231-83/+1
* Initial importAndreas Rumpf2008-06-221-0/+575
ass="w"> => { // Handle ^ anchor at the beginning if (pattern[0] === '^') { return matchHere(pattern.slice(1), text); } // Otherwise, check the entire string for (let i = 0; i <= text.length; i++) { if (matchHere(pattern, text.slice(i))) return true; } return false; }; const assertEqual = (actual, expected, testName) => console.log(actual === expected ? `Passed: ${testName}` : `Failed: ${testName}. Expected ${expected} but got ${actual}`); assertEqual(match("ab*c", "ac"), true, "Star match 'ab*c' vs 'ac' (zero occurrences)"); assertEqual(match("ab*c", "abbbc"), true, "Star match 'ab*c' vs 'abbbc' (multiple occurrences)"); assertEqual(match("^ab.*c$", "abc"), true, "Complex match '^ab.*c$' vs 'abc'"); assertEqual(match("^ab.*c$", "abcd"), false, "Complex mismatch '^ab.*c$' vs 'abcd'");