Skip to content

Commit eb4e7bf

Browse files
authored
Merge pull request #8 from xNickyDev/dev
v1.0.2
2 parents b1453ba + 041a8a7 commit eb4e7bf

File tree

13 files changed

+298
-116
lines changed

13 files changed

+298
-116
lines changed

dist/native/regexReplace.d.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { NativeFunction, ArgType } from "@tryforge/forgescript";
2+
declare const _default: NativeFunction<[{
3+
name: string;
4+
description: string;
5+
type: ArgType.String;
6+
required: true;
7+
rest: false;
8+
}, {
9+
name: string;
10+
description: string;
11+
type: ArgType.String;
12+
required: true;
13+
rest: false;
14+
}, {
15+
name: string;
16+
description: string;
17+
type: ArgType.String;
18+
rest: false;
19+
required: true;
20+
}, {
21+
name: string;
22+
description: string;
23+
rest: false;
24+
type: ArgType.Number;
25+
}], true>;
26+
export default _default;
27+
//# sourceMappingURL=regexReplace.d.ts.map

dist/native/regexReplace.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/native/regexReplace.js

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/native/regexReplace.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/classes/Context.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/classes/ForgeRegex.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

docs/classes/RegexManager.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>forge.regex</title><meta name="description" content="Documentation for forge.regex"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/icons.js" id="tsd-icons-script"></script><script async src="assets/search.js" id="tsd-search-script"></script><script async src="assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">forge.regex</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><h1>forge.regex</h1></div><div class="tsd-panel tsd-typography"><div align="center">
2-
<img height="150" width="150" src="https://github.com/xNickyDev/ForgeRegex/blob/dev/assets/RegExp.png" alt="ForgeRegex">
2+
<img height="150" width="150" src="https://github.com/user-attachments/assets/9cf8b9e6-983c-4a30-a27c-e1fe848badb7" alt="ForgeRegex">
33
<a id="md:forgeregex" class="tsd-anchor"></a><h1 class="tsd-anchor-link">ForgeRegex<a href="#md:forgeregex" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h1><p>A ForgeScript extension that provides support for advanced regex functions.</p>
44
<p><a href="https://github.com/xNickyDev/ForgeRegex/"><img src="https://img.shields.io/github/package-json/v/xNickyDev/ForgeRegex/main?label=forge.regex&color=5c16d4" alt="forge.regex"></a>
55
<a href="https://github.com/tryforge/ForgeScript/"><img src="https://img.shields.io/github/package-json/v/tryforge/ForgeScript/main?label=@tryforge/forgescript&color=5c16d4" alt="@tryforge/forgescript"></a>

metadata/changelogs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"1.0.0":[{"message":"Added $getRegex and $regexExists"},{"message":"Added $regexSearch"},{"message":"Added separator to $regexSplit and $regexMatch"},{"message":"Added functions to set flags and last index"},{"message":"Added bunch of regex functions"},{"message":"Added $deleteRegex"},{"message":"Added $regexTest"},{"message":"Added $createRegex"}],"1.0.1":[{"message":"Restructured changelogs.json","timestamp":"2025-06-01T00:55:53.474Z","author":"xNickyDev"}]}
1+
{"1.0.0":[{"message":"Added $getRegex and $regexExists"},{"message":"Added $regexSearch"},{"message":"Added separator to $regexSplit and $regexMatch"},{"message":"Added functions to set flags and last index"},{"message":"Added bunch of regex functions"},{"message":"Added $deleteRegex"},{"message":"Added $regexTest"},{"message":"Added $createRegex"}],"1.0.1":[{"message":"Restructured changelogs.json","timestamp":"2025-06-01T00:55:53.474Z","author":"xNickyDev"}],"1.0.2":[{"message":"Added $regexReplace","timestamp":"2025-07-27T10:56:41.667Z","author":"xNickyDev"}]}

metadata/functions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"name":"$createRegex","version":"1.0.0","description":"Creates a new regex","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the new regex","type":"String","required":true,"rest":false},{"name":"pattern","description":"The pattern of the regex","type":"String","required":true,"rest":false},{"name":"flags","description":"The flags of the regex","type":"String","rest":false}]},{"name":"$deleteRegex","version":"1.0.0","description":"Deletes an existing regex, returns bool","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex to delete","type":"String","required":true,"rest":false}],"output":["Boolean"]},{"name":"$getRegex","version":"1.0.0","description":"Gets an existing regex","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex to get","type":"String","required":true,"rest":false}],"output":["String"]},{"name":"$regexExecute","version":"1.0.0","description":"Executes a regex search on a string, returns the result","aliases":["$regexExec"],"brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false},{"name":"string","description":"The string to execute","type":"String","required":true,"rest":false},{"name":"separator","description":"The separator to use for each result","type":"String","rest":false}],"output":["Unknown"]},{"name":"$regexExists","version":"1.0.0","description":"Returns whether a regex exists","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false}],"output":["Boolean"]},{"name":"$regexFlags","version":"1.0.0","description":"Returns the flags of a regex","aliases":["$regexFlag"],"brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false}],"output":["String"]},{"name":"$regexLastIndex","version":"1.0.0","description":"Returns the last index of a regex","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false}],"output":["Number"]},{"name":"$regexMatch","version":"1.0.0","description":"Returns the regex matches for a string","aliases":["$regexMatches"],"brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false},{"name":"string","description":"The string to return matches for","type":"String","required":true,"rest":false},{"name":"separator","description":"The separator to use for each result","type":"String","rest":false}],"output":["Unknown"]},{"name":"$regexSearch","version":"1.0.0","description":"Returns the index of the first match in a string","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false},{"name":"string","description":"The string to search for","type":"String","required":true,"rest":false}],"output":["Number"]},{"name":"$regexSplit","version":"1.0.0","description":"Splits a string with regex","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false},{"name":"string","description":"The string to split","type":"String","required":true,"rest":false},{"name":"separator","description":"The separator to use for each result","type":"String","rest":false}],"output":["Unknown"]},{"name":"$regexTest","version":"1.0.0","description":"Returns whether the regex matches the string","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false},{"name":"string","description":"The string to check for","type":"String","required":true,"rest":false}],"output":["Boolean"]},{"name":"$setRegexFlags","version":"1.0.0","description":"Sets the flags for a regex","aliases":["$setRegexFlag"],"brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false},{"name":"flags","description":"The flags to set","type":"String","required":true,"rest":false}]},{"name":"$setRegexLastIndex","version":"1.0.0","description":"Sets the last index for a regex","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false},{"name":"index","description":"The index to set","type":"Number","required":true,"rest":false}]}]
1+
[{"name":"$createRegex","version":"1.0.0","description":"Creates a new regex","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the new regex","type":"String","required":true,"rest":false},{"name":"pattern","description":"The pattern of the regex","type":"String","required":true,"rest":false},{"name":"flags","description":"The flags of the regex","type":"String","rest":false}]},{"name":"$deleteRegex","version":"1.0.0","description":"Deletes an existing regex, returns bool","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex to delete","type":"String","required":true,"rest":false}],"output":["Boolean"]},{"name":"$getRegex","version":"1.0.0","description":"Gets an existing regex","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex to get","type":"String","required":true,"rest":false}],"output":["String"]},{"name":"$regexExecute","version":"1.0.0","description":"Executes a regex search on a string, returns the result","aliases":["$regexExec"],"brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false},{"name":"string","description":"The string to execute","type":"String","required":true,"rest":false},{"name":"separator","description":"The separator to use for each result","type":"String","rest":false}],"output":["Unknown"]},{"name":"$regexExists","version":"1.0.0","description":"Returns whether a regex exists","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false}],"output":["Boolean"]},{"name":"$regexFlags","version":"1.0.0","description":"Returns the flags of a regex","aliases":["$regexFlag"],"brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false}],"output":["String"]},{"name":"$regexLastIndex","version":"1.0.0","description":"Returns the last index of a regex","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false}],"output":["Number"]},{"name":"$regexMatch","version":"1.0.0","description":"Returns the regex matches for a string","aliases":["$regexMatches"],"brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false},{"name":"string","description":"The string to return matches for","type":"String","required":true,"rest":false},{"name":"separator","description":"The separator to use for each result","type":"String","rest":false}],"output":["Unknown"]},{"name":"$regexReplace","version":"1.0.2","description":"Replace text in a string using regex","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex to match in base","type":"String","required":true,"rest":false},{"name":"text","description":"The base text","type":"String","required":true,"rest":false},{"name":"new value","description":"The text to replace matches with","type":"String","rest":false,"required":true},{"name":"amount","description":"How many times to perform this replacement","rest":false,"type":"Number"}],"output":["String"]},{"name":"$regexSearch","version":"1.0.0","description":"Returns the index of the first match in a string","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false},{"name":"string","description":"The string to search for","type":"String","required":true,"rest":false}],"output":["Number"]},{"name":"$regexSplit","version":"1.0.0","description":"Splits a string with regex","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false},{"name":"string","description":"The string to split","type":"String","required":true,"rest":false},{"name":"separator","description":"The separator to use for each result","type":"String","rest":false}],"output":["Unknown"]},{"name":"$regexTest","version":"1.0.0","description":"Returns whether the regex matches the string","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false},{"name":"string","description":"The string to check for","type":"String","required":true,"rest":false}],"output":["Boolean"]},{"name":"$setRegexFlags","version":"1.0.0","description":"Sets the flags for a regex","aliases":["$setRegexFlag"],"brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false},{"name":"flags","description":"The flags to set","type":"String","required":true,"rest":false}]},{"name":"$setRegexLastIndex","version":"1.0.0","description":"Sets the last index for a regex","brackets":true,"unwrap":true,"args":[{"name":"name","description":"The name of the regex","type":"String","required":true,"rest":false},{"name":"index","description":"The index to set","type":"Number","required":true,"rest":false}]}]

0 commit comments

Comments
 (0)