tech.deplant.commons.regex.Symbol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-core Show documentation
Show all versions of commons-core Show documentation
Development framework for Everscale DApp development
The newest version!
package tech.deplant.commons.regex;
public record Symbol(char symbol) implements RegExpression {
@Override
public String build() {
String str = String.valueOf(symbol());
if (RESERVED_SYMBOLS.contains(str)) {
str = String.format("\\%s", str);
}
return str;
}
}