a
    YÒOc2  ã                   @   s   d dl Z dd„ ZdS )é    Nc                 C   sD   t  d¡}| | ¡}|s(td| › d�ƒ‚| d¡ ¡ t| d¡ƒfS )zsplits a string into (tag, id)z%^(?P<tag>[a-zA-Z]+)[\s-]*(?P<pk>\d+)$zunable to split string 'ú'ÚtagÚpk)ÚreÚcompileÚsearchÚ
ValueErrorÚgroupÚlowerÚint)ÚstringZre_tagÚm© r   úL/var/www/html/gsl.tools/lib/python3.9/site-packages/django_handleref/util.pyÚ	split_ref   s
    

r   )r   r   r   r   r   r   Ú<module>   s   