Skip to content

Commit

Permalink
fix(jira-shortcuts): "Smart log" - widen the letters search
Browse files Browse the repository at this point in the history
The previous regex didn't match letters like Czech 'ž' or 'ů'.
  • Loading branch information
pbodnar authored May 31, 2022
1 parent a3ee4d1 commit 595f5a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions JIRA_shortcuts.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @namespace pbo
// @description JIRA - additional shortcuts for JIRA
// @include http://your.jira.example.com/browse/*
// @version 1.2.1
// @version 1.2.2
// @grant GM_registerMenuCommand
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
Expand Down Expand Up @@ -86,7 +86,7 @@ function doSmartLogTime(commentEditor) {
$('#log-work-time-logged').val(Math.round((sumTime + Number.EPSILON) * 100) / 100);

// 2) fill "Work Description"
var descrIndex = timesAndDescr.search(/[A-Za-zÀ-ÖØ-öø-ÿ]/);
var descrIndex = timesAndDescr.search(/[A-Za-z\u00C0-\u017F]/);
if (descrIndex < 0) {
descrIndex = 0;
}
Expand Down

0 comments on commit 595f5a2

Please sign in to comment.