Delete the first periodic digit We all know that whenever a rational number is written in decimal, the result is either terminating or (eventually) periodic. For example, when 41/42 is written in decimal, the result is

0.9 761904 761904 761904 761904 761904 761904 761904 ...


with an initial sequence of digits 0.9 followed by the sequence 761904 repeated over and over again. (A convenient notation for this is 0.9(761904) where the parentheses surround the block of repeating digits.)

Your goal in this challenge is to take a positive rational number, delete the first digit that's part of the repeating sequence, and return the resulting rational number. For example, if we do this to 41/42, we get

0.9  61904 761904 761904 761904 761904 761904 761904 ...


or 0.9(619047) for short, which is 101/105.

If the rational number has a terminating decimal expansion, like 1/4 = 0.25 does, nothing should happen. You can think of 1/4 either as 0.250000000... or as 0.249999999... but in either case, deleting the first digit of the repeating part leaves the number unchanged.

Details


The input is a positive rational number, either as a pair of positive integers representing the numerator and denominator, or (if your language of choice allows it and you want to) as some sort of rational-number object.
The output is also a rational number, also in either form. If the result is an integer, you may return the integer instead of a rational number.
If taking a pair of numbers as input, you may assume they're relatively prime; if producing a pair of numbers as output, you must make them be relatively prime.
Be careful that you find the first digit that starts a repeating block. For example, one could write 41/42 as 0.97(619047) but that doesn't make 2041/2100 (with the decimal expansion 0.97(190476)) a valid answer.
You may assume that in the input you get, the first periodic digit is after the decimal point, making 120/11 = 10.909090909... invalid input: (its first periodic digit could be considered the 0 in 10). You may do anything you like on such input.
This is code-golf: the shortest solution wins.


Test cases

41/42 =&gt; 101/105
101/105 =&gt; 193/210
193/210 =&gt; 104/105
104/105 =&gt; 19/21
1/3 =&gt; 1/3
1/4 =&gt; 1/4
2017/1 =&gt; 2017/1
1/7 =&gt; 3/7
1/26 =&gt; 11/130
1234/9999 =&gt; 2341/9999
Wolfram Language (Mathematica), 59 bytes
FromDigits@MapAt[RotateLeft@*List@@#&amp;,RealDigits@#,{1,-1}]&amp;

Try it online!
Explanation
RealDigits@#

Find the decimal digits of the input.
MapAt[RotateLeft@*List@@#&amp;, ..., {1,-1}]

If there are repeating digits, RotateLeft them. (List@@# prevents the code from attempting to rotate the last decimal digit if the rational number is terminating).
FromDigits@

Convert to rational.