You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: centralize candidate pattern, remove core guard, add word boundaries
- Extract TEMPORARY_ID_CANDIDATE_PATTERN as a module-level constant next
to TEMPORARY_ID_PATTERN (with word boundary \b at end)
- Remove typeof core guard — core is always defined via shim.cjs
- Reset lastIndex before using the global regex in replaceTemporaryIdReferences
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
core.warning(`Malformed temporary ID reference '${candidate[0]}' found in body text. Temporary IDs must be in format '#aw_' followed by 3 to 8 alphanumeric characters (A-Za-z0-9). Example: '#aw_abc' or '#aw_Test123'`);
core.warning(`Malformed temporary ID reference '${candidate[0]}' found in body text. Temporary IDs must be in format '#aw_' followed by 3 to 8 alphanumeric characters (A-Za-z0-9). Example: '#aw_abc' or '#aw_Test123'`);
92
96
}
93
97
}
94
98
@@ -539,6 +543,7 @@ function getCreatedTemporaryId(message) {
0 commit comments