Created on 31 October 2017, over 6 years ago
Updated 23 January 2023, over 1 year ago

There is a issue with the js code craftyclicks.js

function leading_caps(a){if(2>a.length)return a;for(var b="",c=a.split(" "),d=0;d<c.length;d++){var e=this.str_trim(c[d]);""!=e&&(""!=b&&(b+=" "),b+=this.cp_uc(e))}return b}function str_trim(a){for(var b=0,c=a.length-1;b<a.length&&" "==a[b];)b++;for(;c>b&&" "==a[c];)c-=1;return a.substring(b,c+1)}function cp_uc(a){if("PC"==a||"UK"==a||"EU"==a)return a;for(var b="ABCDEFGHIJKLMNOPQRSTUVWXYZ",c="",d=1,e=0,f=0;f<a.length;f++)-1!=b.indexOf(a.charAt(f))?d||e?(c+=a.charAt(f),d=0):c+=a.charAt(f).toLowerCase():(c+=a.charAt(f),f+2>=a.length&&"'"==a.charAt(f)?d=0:"("==a.charAt(f)?(close_idx=a.indexOf(")",f+1),close_idx>f+3?(e=0,d=1):e=1):")"==a.charAt(f)

Please check.

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇮🇳India ShekharPaatni

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024