summaryrefslogtreecommitdiffstats
path: root/models/token.go
diff options
context:
space:
mode:
authorCommanderRoot <CommanderRoot@users.noreply.github.com>2022-02-18 07:50:36 +0100
committerGitHub <noreply@github.com>2022-02-18 14:50:36 +0800
commit1ab88da0e460a076a95dcd2cad812e707da3acc9 (patch)
treeeb685355022b805a9198fe2d9905416f1b1dc8e2 /models/token.go
parenta7b9d44d8842a5a1c82a180215536da647077f68 (diff)
downloadgitea-1ab88da0e460a076a95dcd2cad812e707da3acc9.tar.gz
gitea-1ab88da0e460a076a95dcd2cad812e707da3acc9.zip
Replace deprecated String.prototype.substr() with String.prototype.slice() (#18796)
String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) so we replace it with the slice() method which works similarily but isn't deprecated. Signed-off-by: Tobias Speicher <rootcommander@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'models/token.go')
0 files changed, 0 insertions, 0 deletions